<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<?php include('..\lib\model\mapaEntrega.php');?>
<?php include('../lib/model/mapaEntrega.php');?>

<form action="<?php echo url_for('libretaentrega/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?len_id='.$form->getObject()->getLenId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          &nbsp;<a href="<?php echo url_for('libretaentrega/showDireccionentrega?cli_id='.$sf_user->getAttribute('cliente_id')) ?>">Volver</a>
          <?php if (!$form->getObject()->isNew()): ?>
            &nbsp;<?php echo link_to('Borrar', 'libretaentrega/delete?len_id='.$form->getObject()->getLenId(), array('method' => 'delete', 'confirm' => '¿Esta seguro?')) ?>
          <?php endif; ?>
          <input type="submit" value="Guardar" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form ?>
    </tbody>
  </table>
</form>

<p>Ejemplo: Miami, Florida, Usa</p>
   <div>
       <input id="address" type="textbox" value="el paraiso, caracas, Venezuela"width="200px">
       <input type="button" value="Aceptar" onClick="codeAddress()">
   </div>
    <div id="map_canvas" style="width: 580px; height: 450px; text-align:center"></div>
